package com.springmvc.flow.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.springmvc.flow.service.UserService;

@Controller
public class HelloworldController {

	@Autowired
	UserService userService;
	
	public HelloworldController() {
		System.out.println("HelloworldController Constructor ...");
	}
	
	@RequestMapping("/helloworld")
	public String helloworld() {
		userService.checkUser();
		System.out.println("helloworld");
		return "success";
	}
	
}
